package com.docmanage.am.service.impl;

import com.docmanage.am.domain.vo.BDCTest;
import com.docmanage.am.mapper.BDCTestMapper;
import com.docmanage.common.annotation.DataSource;
import com.docmanage.common.enums.DataSourceType;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BDCTeatService {

    @Resource
    private BDCTestMapper bdcTestMapper;

    @DataSource(value = DataSourceType.SLAVE)
    public List<BDCTest> getdata() {
        List<BDCTest> list = bdcTestMapper.getdata();
        return list;
    }
}
